<?php
require('libs/Smarty.class.php');

$smarty = new Smarty;

//$smarty->force_compile = true;
//$smarty->debugging = true;
$smarty->caching = true;
$smarty->cache_lifetime = 120;

//defo normal variable
$smarty->assign("title", "User Registration using Smarty application");
$smarty->assign("server_name", $_SERVER['SERVER_NAME']);

//demo array
$arr=array(
    array(
    'name'=>'tuan',
    'ho'=>'nguyen',
        )
    ,
    array(
    'name'=>'tuan',
    'ho'=>'nguyen',
        )
);
$smarty->assign('arr',$arr);

$smarty->display('index.tpl');